package com.jml.producer.impl;

import com.jml.producer.IMessageProducerService;
import javax.annotation.Resource;
import javax.jms.Queue;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.stereotype.Service;

@Service
public class IMessageProducerServiceImpl implements IMessageProducerService {

	@Resource
	private JmsMessagingTemplate jmsMessagingTemplate;
	@Resource
	private Queue queue;
	@Override
	public void sendMessage(String msg) {
		jmsMessagingTemplate.convertAndSend(queue,msg);
	}
}
